FLOW OF STATE  (flags based on checking dependencies)

#include
makeMap()
A:		Load map file
B:		Pass map data
C:		Draw new map

- A: Load map file -
Request a map XML file
Wait for map to load, then...
Request chipset image files
* prevent chipset loading, until all chipset loading completes
Wait for all requested chipset images, then...
* allow chipset loading
draw map
* allow drawing

- B: Pass map data -
Request chipset image files
* prevent chipset loading, until all chipset loading completes
Wait for all requested chipset images, then...
* allow chipset loading
draw map
* allow drawing

- C: Draw new map (layer, chipset) -
* prevent drawing, until 1+ layers  &  1+ chipsets loaded
Create layer
Request a chipset image file
* prevent chipset loading, until all chipset loading completes
Wait for all requested chipset images, then...
* allow chipset loading
* allow drawing

- C: Draw new map (chipset, layer) -
* prevent drawing, until 1+ layers  &  1+ chipsets loaded
Request a chipset image file
* prevent chipset loading, until all chipset loading completes
Wait for all requested chipset images, then...
* allow chipset loading
Create layer
* allow drawing